package com.kefu.call.vo;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.kefu.call.model.IvrCom;
import com.kefu.common.context.KefuContext;
import com.kefu.common.vo.AbstractSearchVo;
import io.swagger.annotations.ApiModel;
import lombok.Data;

@Data
@ApiModel
public class IvrComSearchVo extends AbstractSearchVo {

    @Override
    public LambdaQueryWrapper lambdaQuery() {
        LambdaQueryWrapper<IvrCom> wrapper = Wrappers.lambdaQuery(IvrCom.class);
        wrapper.eq(IvrCom::getFoid, KefuContext.getTid());
        wrapper.orderByDesc(IvrCom::getUpdateTime);
        return wrapper;
    }
}
